/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.science_mono.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 专著Entity
 * @author hang
 * @version 2017-01-15
 */
public class TbScienceMono extends DataEntity<TbScienceMono> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 专著作者
	private String type;		// 著作类型
	private String author;		// 作者
	private String press;		// 出版社
	private String publicDate;		// 出版年月
	private String isbnNum;		// ISBN号
	private String printing;		// 印数
	private String intoLibrary;		// 是否入选文库
	private String remark;		// 备注
	private String material;		// 证明材料
	private Date createTime;		// 创建时间
	private Date updateTime;		// 更新时间
	
	public TbScienceMono() {
		super();
	}

	public TbScienceMono(String id){
		super(id);
	}

	@Length(min=0, max=100, message="专著作者长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=64, message="著作类型长度必须介于 0 和 64 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=64, message="作者长度必须介于 0 和 64 之间")
	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}
	
	@Length(min=0, max=64, message="出版社长度必须介于 0 和 64 之间")
	public String getPress() {
		return press;
	}

	public void setPress(String press) {
		this.press = press;
	}
	
	@Length(min=0, max=64, message="出版年月长度必须介于 0 和 64 之间")
	public String getPublicDate() {
		return publicDate;
	}

	public void setPublicDate(String publicDate) {
		this.publicDate = publicDate;
	}
	
	@Length(min=0, max=100, message="ISBN号长度必须介于 0 和 100 之间")
	public String getIsbnNum() {
		return isbnNum;
	}

	public void setIsbnNum(String isbnNum) {
		this.isbnNum = isbnNum;
	}
	
	@Length(min=0, max=100, message="印数长度必须介于 0 和 100 之间")
	public String getPrinting() {
		return printing;
	}

	public void setPrinting(String printing) {
		this.printing = printing;
	}
	
	@Length(min=0, max=64, message="是否入选文库长度必须介于 0 和 64 之间")
	public String getIntoLibrary() {
		return intoLibrary;
	}

	public void setIntoLibrary(String intoLibrary) {
		this.intoLibrary = intoLibrary;
	}
	
	@Length(min=0, max=200, message="备注长度必须介于 0 和 200 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Length(min=0, max=200, message="证明材料长度必须介于 0 和 200 之间")
	public String getMaterial() {
		return material;
	}

	public void setMaterial(String material) {
		this.material = material;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}